#include <AtlasBase.h>
#include <AtlasCommon.h>

#include "ExLobbyDDL.h"

namespace Atlas
{

	const char* AtlasGameName()
	{
		return "ExLobby";
	}

	void InitDDLStub()
	{
		Atlas::Engine::InitDDLStub();
		RegisterClientStub<LOBBY_S2C>();
		RegisterServerStub<LOBBY_C2S>(NODEID_AVATAR);
		RegisterClientStub<ROOM_S2C>();
		RegisterServerStub<ROOM_C2S>(NODEID_ROOM);
	}

	void InitContentObjects()
	{
		Atlas::Engine::InitContentObjects();
		ContentObject::Register(DDLReflect::GetStruct<A_QUEST_DEFINE>());
		ContentObject::Register(DDLReflect::GetStruct<A_TEST_DEFINE>());
		ContentObject::Register(DDLReflect::GetStruct<A_ITEM_DEFINE>());
	}

	void InitLiveObjects()
	{
		Atlas::Engine::InitLiveObjects();
		LiveObject::Register(DDLReflect::GetStruct<A_QUEST_DATA>());
	}

	void InitSyncObjects()
	{
		Atlas::Engine::InitSyncObjects();
		Sync::Register(DDLReflect::GetStruct<A_ROOM_INFO>());
	}

};
